package cn.yeziji.forum.common;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * caffeine zset 对象
 *
 * @author gzkemays
 * @since 2022/1/6 23:32
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CaffeineZsetMap {
  long id;
  long source;
  Object member;

  public CaffeineZsetMap buildOne(long source, Object member) {
    this.id = 1;
    this.source = source;
    this.member = member;
    return this;
  }

  public CaffeineZsetMap build(long id, long source, Object member) {
    this.id = id;
    this.source = source;
    this.member = member;
    return this;
  }
}
